<!DOCTYPE HTML>
<html lang="en-US">
<head>
	<meta charset="UTF-8">
	<title>getMessage</title>
	<script type="text/javascript" src="//libs.baidu.com/jquery/1.11.1/jquery.min.js"></script>
	<script type="text/javascript">
        window.addEventListener('message', function(event){
            //alert(event.origin)
            if (event.origin == 'http://10.1.1.21') {
                var data = event.data;
                $.ajax({
                    type: "POST",
                    processData:false,
                    url: data['url'],
                    data: {
                        data:JSON.stringify(data['data'])
                    },
                    success: function (data) { alert(data) },
                    eror: function (data) { alert(data) }
                });
            }
        }, false);
	</script>
</head>
<body>
	 
</body>
</html>